package com.kotlin.sample.grammar

class Bean02 {

    var name: String = "initial value"
        set(value) {
            if (value.isNotEmpty()) {
                field = value
            }
        }

}